package com.zk.service;


import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.mq.service.IMqSendService;



@Service
public class MqSendService {
	
	@Autowired
	IMqSendService mqSendService;
	
	/**
	 * 
	 * @param map
	 * @return
	 */
	public String SendMessage(Map<String,Object> map) {
		
		 String str = mqSendService.sendMessage(map);
		return str;
	}
	/**
	 * topicExchange 交换机
	 * @param map
	 * @return
	 */
	public String sendTopicMessage(Map<String,Object> map) {
		
		 String str = mqSendService.sendTopicMessage(map);
		return str;
	}
	/**
	 * Fanout Exchang 扇型交换机
	 * @param map
	 * @return
	 */
	public String sendFanoutMessage(Map<String,Object> map) {
		
		 String str = mqSendService.sendFanoutMessage(map);
		return str;
	}
}
